package com.itheima.day04Dome01;



import java.util.Scanner;

public class contains {
    public static void main(String[] args) {
       Scanner scanner = new Scanner(System.in);
         System.out.println("请输入您的Email地址：");
        String email = scanner.next();
        if (email.contains("@") && email.contains(".")) {
            System.out.println("合法");

        } else {
            System.out.println("不盒饭");
        }












    }



}
